from pydantic import BaseSettings
import os

class Settings(BaseSettings):
    # MySQL 配置（移除默认值）
    MYSQL_HOST: str
    MYSQL_PORT: int
    MYSQL_USER: str
    MYSQL_PASSWORD: str
    MYSQL_DB: str

    # 停留等待时长
    INTERVAL: int
    # MongoDB 配置（添加类型声明）
    MONGO_URI: str
    MONGO_DB_NAME: str
    

    XINGCHEN_API_KEY: str
    class Config:
        env_file = r"../.env" 
        env_file_encoding = 'utf-8'  
    TONGYI_API_KEY: str
settings = Settings()

